import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'lib-flexible'
import { Model } from './config/classes/mc/model'
import Phaser from 'phaser'
import { config } from './config/main'
import { Constants } from './config/constants'

Vue.config.productionTip = false
Vue.prototype.$game = new Phaser.Game(config)
Vue.prototype.$emitter = null
Vue.prototype.$G = new Constants()
Vue.prototype.$model = new Model()
Vue.prototype.$controller = null
// 分数
Vue.prototype.$scoreBox = null
// 网格
Vue.prototype.$alignGrid = null
Vue.prototype.$flatButton = null

window._that = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
